package org.lanqiao.ssm.facede.auth.facede.impl;

import javax.annotation.Resource;

import org.lanqiao.ssm.common.core.facede.base.BaseQueryFacede;
import org.lanqiao.ssm.common.core.service.BaseServiceI;
import org.lanqiao.ssm.facede.auth.facede.RoleQueryFacedeI;
import org.lanqiao.ssm.facede.auth.model.Role;
import org.lanqiao.ssm.facede.auth.service.RoleServiceI;
import org.springframework.stereotype.Component;

import com.github.pagehelper.PageInfo;

@Component("roleQueryFacede")
public class RoleQueryFacedeImpl extends BaseQueryFacede<Role, String>
		implements RoleQueryFacedeI {

	@Resource
	private RoleServiceI roleService;

	public BaseServiceI<Role, String> getService() {
		return roleService;
	}

	@Override
	public PageInfo<Role> findRoleResources(Role role,int page,int pageShow) throws Exception {
		
		return roleService.findRoleAndResources(role, page, pageShow);
	}


}
